package com.huoyun.base.service;

import java.util.List;

import com.huoyun.base.bean.Region;
import com.huoyun.base.dao.RegionDao;

public class RegionServiceImpl implements RegionService 
{

	private RegionDao regionDao;
	
	@Override
	public Region getRegionByCode(String code) {
		return regionDao.getRegionByCode(code);
	}
	
	@Override
	public Region getRegionById(int id)
	{
		return regionDao.getRegionById(id);
	}

	@Override
	public List<Region> queryChilds(int parentId) {
		return regionDao.queryChilds(parentId);
	}
	
	@Override
	public List<Region> queryChilds(String parentCode)
	{
		return regionDao.queryChilds(parentCode);
	}
	
	@Override
	public List<Region> queryHotCitys()
	{
		return regionDao.queryHotCitys();
	}

	public RegionDao getRegionDao() {
		return regionDao;
	}

	public void setRegionDao(RegionDao regionDao) {
		this.regionDao = regionDao;
	}

}
